package my.entity;

/**
 * <p>
 *
 * </p>
 *
 * @author AJun
 * @since 2020/8/11
 */
public class Person implements Comparable<Person> {

    private Integer age;

    public Person() {

    }

    public Person(Integer age) {
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                '}';
    }

    @Override
    public int compareTo(Person o) {
        return age - o.age;
    }

}
